#ifndef _HAL_SOFT_IIC_H
#define _HAL_SOFT_IIC_H

#include "hal_gpio.h"
#include "hal_sys.h"


void    hal_soft_iic_init(struct gpio_type *sda_gpio, struct gpio_type *scl_gpio);
uint8_t hal_soft_iic_write(uint8_t dev_addr, uint8_t reg_addr, uint8_t data);
uint8_t hal_soft_iic_read(uint8_t dev_addr, uint8_t reg_addr, uint8_t *data);
uint8_t hal_soft_iic_Multi_read(uint8_t dev_addr, uint8_t start_reg, uint8_t *buf, uint16_t len);
void hal_soft_iic_Multi_write(uint8_t dev_addr, uint8_t start_reg, uint8_t *buf, uint16_t len);

#endif